package com.tender.desensitization;

import org.springframework.core.MethodParameter;

public interface DefaultAdvice {

    default boolean hasFieldDecryptionAnnotation(MethodParameter methodParameter) {
        return false;
    }

    default boolean hasFieldEncryptionAnnotation(Object instance) {
        return false;
    }

    default Object doFieldEncryption(Object data) {
        return data;
    }

    default Object doFieldDecryption(Object data, String keyAES128) {
        return data;
    }

}
